<?php
session_start();
DEFINE ("PATH_TO_INCLUDE", ""); //определяем константу пути.    
include(PATH_TO_INCLUDE.'component/source.php'); 
$session = new Session();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title><?php $source->getTitle(); ?></title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link href="<?php echo PATH_TO_INCLUDE;?>style/main.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/jscript" src="<?php echo PATH_TO_INCLUDE;?>script/jquery.js"></script>
<script language="javascript" type="text/jscript" src="<?php echo PATH_TO_INCLUDE;?>script/site.js"></script> 
<!--[if IE 5]>
<style type="text/css"> 
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]--></head>

<body class="twoColFixLtHdr">
<div id="container">
  <div id="header">
    <h1>Главная</h1>
  <!-- end #header --></div>
  <div id="sidebar1">
    <?php $source->userMenu($session->status);?>
  <!-- end #sidebar1 --></div>
  <div id="mainContent">
    <?php $source->body($session->status);?>    
	<!-- end #mainContent --></div>
	<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
  <div id="footer">
    <p>Footer</p>
  <!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
